enum LightDiretion {
  leftGreen('11'),
  leftRed('12'),
  leftYellow('13'),
  rightGreen('31'),
  rightRed('32'),
  rightYellow('33'),
  straightGreen('21'),
  straightYellow('23'),
  straightRed('22');

  final String code;
  const LightDiretion(this.code);
  factory LightDiretion.fromCode(String code) {
    return values.firstWhere((element) => element.code == code);
  }
}
